package cn.nju.zyy.samples;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class CustomerClient {
	
	private CustomerService customerService;

	@Autowired
	public void setCustomerService(CustomerService customerService) {
		this.customerService = customerService;
	}
	
	public void printCustomerInformation(long customerId) {
		Customer customer = customerService.getCustomerById(customerId);
		System.out.println(customer);
	}

}
